package com.wjh.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Wu Jiahong
 * @since 2022-01-25
 */
@Getter
@Setter
  @Accessors(chain = true)
  @ApiModel(value = "Remind对象", description = "")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Remind {

      @ApiModelProperty("事务ID")
        @TableId(value = "remind_id", type = IdType.AUTO)
      private Integer remindId;

      @NotBlank
      @ApiModelProperty("事务名")
      private String name;

      @NotNull
      @ApiModelProperty("事务时间")
      @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
      private Date time;

      @NotNull
      @ApiModelProperty("用户ID")
      private Integer userId;


      @ApiModelProperty("人脉ID")
      private Integer peopleId;


      @ApiModelProperty("描述")
      private String description;

      @ApiModelProperty("礼物提醒")
      private String gift;


      public static final String REMIND_ID = "remind_id";

      public static final String NAME = "name";

      public static final String TIME = "time";

      public static final String USER_ID = "user_id";

      public static final String PEOPLE_ID = "people_id";

      public static final String DESCRIPTION = "description";

      public static final String GIFT = "gift";

  }
